extends "../aerjiliya-3/aerjiliya-3.gd"


var baseId = ""
var upText1 = "破甲一击附带的漏水层数+10"
var upText2 = "高爆穿甲弹系数+5%"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("每{cd}秒对敌方护甲最高的单位身旁发起炮击，并赋予10层<烧蚀><漏水>", "破甲一击", "aerjiliya4", 8)

func _castCdSkill(id):
	._castCdSkill(id)
	if id=="aerjiliya4":
		aerjiliya4()

func aerjiliya4():
	var cha = getFirstCha(1, "sortByDefDesc")
	if cha != null:
		.normalAtkChara(cha)
		if not cha.isDeath:
			castBuff(cha, buff.b_shaoShi.new(10))
			buff.addLouShui(cha, self, p4)

var p4 = 10
func upgrade():
	.upgrade()
	if upgraded == 1:
		p4 = 20
	if upgraded == 2:
		p3 = 0.2